//==============================================================================
//
// Title:		channel.c
// Purpose:		A short description of the implementation.
//
// Created on:	2018/6/28 at 12:51:55 by .
// Copyright:	. All Rights Reserved.
//
//==============================================================================

//==============================================================================
// Include files

#include "channel.h"

//==============================================================================
// Constants

//==============================================================================
// Types

//==============================================================================
// Static global variables

//==============================================================================
// Static functions

//==============================================================================
// Global variables

//==============================================================================
// Global functions

/// HIFN  What does your function do?
/// HIPAR x/What inputs does your function expect?
/// HIRET What does your function return?
int32 Channel_TerminalConfig(uint8_t mode)
{
	int32 ret;
	
	switch (mode) {
		case CHANNEL_MODE_NRSE:
			ret = DAQmx_Val_NRSE;
			break;
			
		case CHANNEL_MODE_DIFF:
			ret = DAQmx_Val_Diff;
			break;
			
		default:
			ret = DAQmx_Val_RSE;
			break;
	}
	
	return ret;
}
